package com.hzit.util;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class ResponseUtil {

	//1. 回写字符串方法
	public static void writeStr(HttpServletResponse response,String str){
		try {
			response.setContentType("application/json;charset=utf8");
			response.getWriter().println(str);
			response.getWriter().flush();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
